package com.enzoism.spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created with IntelliJ IDEA.
 * User: enzoism
 * Date: 2020/2/6- 23:36
 */
@Controller
@RequestMapping("/main")
public class MainController {

    @RequestMapping(value = {"/","/index","/main"},method = RequestMethod.GET)
    public String mainPage(){
        System.out.println("------------跳转商城主页");
        return "main";
    }
}
